<?php 
function kirki_footer()
{
  Kirki::add_section( 'footer', array(
    'priority'    => 30,
    'title'       => esc_html__( '页脚', 'ifan_theme' ),
    'panel'       => 'options',
) );



Kirki::add_field( 'ifan_theme_config', array(
    'type'          => 'radio-image',
    'settings'      => 'footer-style',
    'label'         => esc_html__( '页脚样式', 'ifan_theme' ),

    'section'       => 'footer',
    'default'       => '',
    // 'choices'     => ifan_get_template_file(get_template_directory().'/template-parts/head'),
) );

Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'color',
    'settings'    => 'footer-bg1',
    'label'       => __( '页脚亮背景', 'ifan_theme' ),
    'description' => esc_html__( '一般为页脚导航部分的背景', 'ifan_theme' ),
    'section'     => 'footer',
    'default'     => '#30323b',
    'output' => array(
        array(
            'element'  => '.foot_t',
            'property' => 'background-color',
        ),

    ),
] );
Kirki::add_field( 'ifan_theme_config', [
    'type'        => 'color',
    'settings'    => 'footer-bg2',
    'label'       => __( '页脚暗背景', 'ifan_theme' ),
    'description' => esc_html__( '一般为页脚版权部分的背景', 'ifan_theme' ),
    'section'     => 'footer',
    'default'     => '#23252a',
    'output' => array(
        array(
            'element'  => '.foot_b',
            'property' => 'background-color',
        ),

    ),
] );


}

 ?>